package com.Final.hj;

public class SocketData {

    private String id;//对方的id
    private String hImgId;
    private String uname;
    private String otherName;
    private String time;
    private String flagId;

    //最后一条消息信息
    public String msg;
    public String msgId;
    public String msgTime;
    public String isRead;
    public String noReadNum;

    public SocketData(String id, String hImgId, String uname,
                      String otherName, String time, String flagId,
                      String msg, String msgId, String msgTime,
                      String isRead, String noReadNum) {
        this.id = id;
        this.hImgId = hImgId;
        this.uname = uname;
        this.otherName = otherName;
        this.time = time;
        this.flagId = flagId;
        this.msg = msg;
        this.msgId = msgId;
        this.msgTime = msgTime;
        this.isRead = isRead;
        this.noReadNum = noReadNum;
    }

    /*
         每一条消息的格式显示
        {
            isRead: 消息是否已经读取 true  --读取  false 未读取
            msg: 发送的消息
            msgId: 发消息者的id  如果此时
                可以根据该id是否等于自己的id判断是否是对方发送的消息，
                是的话  再统计未读消息
        }
        */

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String gethImgId() {
        return hImgId;
    }

    public void sethImgId(String hImgId) {
        this.hImgId = hImgId;
    }

    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getOtherName() {
        return otherName;
    }

    public void setOtherName(String otherName) {
        this.otherName = otherName;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getFlagId() {
        return flagId;
    }

    public void setFlagId(String flagId) {
        this.flagId = flagId;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getMsgTime() {
        return msgTime;
    }

    public void setMsgTime(String msgTime) {
        this.msgTime = msgTime;
    }

    public String getIsRead() {
        return isRead;
    }

    public void setIsRead(String isRead) {
        this.isRead = isRead;
    }

    public String getNoReadNum() {
        return noReadNum;
    }

    public void setNoReadNum(String noReadNum) {
        this.noReadNum = noReadNum;
    }
}
